package com.example.lenovo.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

/**
 * Created by Lenovo on 2017/12/18.
 */

public class LoginActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.loginfrag_layout);
        Button btn1=(Button) findViewById(R.id.btn_1);
        Button btn2=(Button)findViewById(R.id.btn_2);
        btn1.setOnClickListener(new View.OnClickListener(){
            public void onClick(View v){
                Intent intent=new Intent(LoginActivity.this, MainActivity.class);

                startActivity(intent);
            }
        });

        btn2.setOnClickListener(new View.OnClickListener(){
            public void onClick(View v){
                Intent intent1=new Intent(LoginActivity.this,ResiginActivity.class);
                startActivity(intent1);
            }
        });
    }
}
